package com.config;

import java.io.IOException;

public class ConfigLoader {
	public static void startSystemglobals(String appPath) throws Exception {

		SystemGlobals.initGlobals(appPath, appPath
				+ "WEB-INF/SystemGlobals.properties",null);
		}

	public static void listenForChanges() throws IOException {
		int fileChangesDelay = SystemGlobals.getIntValue("fileChangesDelay");
		FileMonitor.getInstance().addFileChangeListener(
				new SystemGlobalsListener(),
				SystemGlobals.getValue(ConfigKeys.DEFAULT_CONFIG),
				fileChangesDelay);
	}
}
